package com.example.springboot;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.ConfigurableApplicationContext;

@SpringBootApplication
public class SpringbootApplication {

    public static void main(String[] args) {

        ConfigurableApplicationContext context =SpringApplication.run(SpringbootApplication.class, args);
        LoginService loginService = context.getBean(LoginService.class);
        loginService.login("admin","admin");
    }

}
